﻿<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>最热酒店--禅境旅行</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 <meta name="keywords" content="最热酒店，禅境旅行，度假指南，奢华酒店，度假酒店，禅境旅行" />
<meta name="description"
	content="奢华旅行度假指南-禅境旅行为旅行者精选的度假酒店，均在全球旅行者心目中最有影响力的媒体评选的排名靠前，屡获荣誉和大奖，一般都有全球知名的设计师设计并荣誉当地特色" />
<%@include file="/ui/portal/commonjscss.jsp"%>
<link
	href="${cpath}/resources/portal/js/nivo-slider/themes/default/default.css"
	rel="stylesheet" type="text/css" />
<link href="${cpath}/resources/portal/js/nivo-slider/nivo-slider.css"
	rel="stylesheet" type="text/css" />
<script
	src="${cpath}/resources/portal/js/nivo-slider/jquery.nivo.slider.js"
	type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <c:set var="renderView" value="4" scope="page"></c:set>
		<%@include file="/ui/portal/head.jsp"%>
		<%@include file="/ui/portal/hotel/bigimages.jsp" %>
        <div id="container" class="container margin10">
            <div class=" clear1">
            </div>
            <div class="container-inner">
                <div class="j-tab">
			 		<%--
                    <div class="j-t">
                        <a class="cur" href="javascript:void(0)">体验推荐</a>
                    </div>
                     --%>
                    <div class="j-new">
                        <a href="${cpath }/hotel/new">最新</a>
                    </div>
                    <div class="j-hot">
                        <a class="cur" href="javascript:void(0)">热门</a>
                    </div>
                    <div class="j-all">
                        <a href="${cpath }/hotel">全球分布</a>
                    </div>
                </div>
                <div class="news-index-news margintop0">
                    <div class="news-index-news-inner">
                    <%@include file="/ui/portal/hotel/hotelpage.jsp" %>
                    </div>
                     <div class="loadmore">
                        <a href="/hotel/new"></a>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="loadmore">
                	<a href="${cpath }/hotel/new"></a>
                </div>
            </div>
            <div class=" clear1">
            </div>
            <div class=" clear1">
            </div>
        </div>
        <%@include file="/ui/portal/footer.jsp"%>
    </div>
    <script src="${cpath}/resources/portal/js/infinite/jquery.infinitescroll.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    	$.extend($.infinitescroll.prototype,{
    		_showdonemsg_twitter: function infscr_showdonemsg_twitter () {
    			var opts = this.options;
                opts.loading.msg.find('img').hide();
                opts.loading.msg.find('div').eq(1)
                .html(opts.loading.finishedMsg).animate({ opacity: 1 }, 2000, function () {
                    //return;
                    $(this).parent().fadeOut(opts.loading.speed);
                });
    			// user provided callback when done
    			opts.errorCallback.call($(opts.contentSelector)[0],'done');
    		}
    	});
    	$('.news-index-news-inner').infinitescroll({
    	behavior: 'twitter',
        nextSelector: ".loadmore a:first", //下页对象必须是一个有href的a,只用于取path,置于navSelector内
        navSelector: ".loadmore", //当前浏览器可见底线 处于 它offettop 与它的 bufferPx之间区域 就开始加载新内容,置contentSelector外
        itemSelector: ".news-index-news-l", //注意是要加载内容进行筛选,只加载ajax返回的html中$(itemSelector)内容,contentSelector中也必须有
        pathParse: function(path, page){
            return function(curPage) {
                return '${cpath}/hotel/page/2/'+curPage;
            };
        },
        dataType: 'html', //跨域ajax
        loading: {
        	finishedMsg: "<em>已经到底了</em>",
            msg: $('<div class="hotelloading-loading" id="infscr-loading"><div class="left-line"></div><div class="center-img"><img alt="正在加载中..." src="${cpath}/resources/portal/img/loading.gif" /></div><div class="right-line"></div></div>')
        }
    	});
	});
    </script>
</body>
</html>
